package com.iqiyi.pps.epg.core.dao.vod;

import com.iqiyi.pps.epg.api.model.web.vod.TVodad;
import com.iqiyi.pps.epg.core.dao.base.HibernateDao;
import com.iqiyi.pps.epg.core.model.vod.Vodad;
import org.springframework.stereotype.Component;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by zhangjing on 2017/10/9.
 */
@Component
public class VodadDataDao extends HibernateDao<Vodad, Long>{

    public List<TVodad> transToTList(List<Vodad> dataList) {
        List<TVodad> resultList = new ArrayList<>();
        TVodad tVodad = null;
        for (Vodad tempData : dataList) {
            tVodad = tempData.convertThriftModel();
            resultList.add(tVodad);
        }
        return resultList;
    }
}
